]> sourceware.org Git - newlib-cygwin.git/commitdiff
2001-03-01 Earnie Boyd <earnie@users.sourceforge.net
authorEarnie Boyd <earnie@users.sf.net>
Thu, 1 Mar 2001 20:32:34 +0000 (20:32 +0000)
committerEarnie Boyd <earnie@users.sf.net>
Thu, 1 Mar 2001 20:32:34 +0000 (20:32 +0000)
* Makefile.in: (snapshot): Add target.
* lib/Makefile.in: (install-headers): Use installdir variable.
(installdir): Set value based on target-alias.

winsup/w32api/ChangeLog
winsup/w32api/Makefile.in
winsup/w32api/lib/Makefile.in

index dcce7f05da5ab9df693d50522109dd77f0aaf0bb..3111b73b0696783d8c7068973f8a748479b35165 100644 (file)
@@ -1,4 +1,10 @@
 
+2001-03-01  Earnie Boyd  <earnie@users.sourceforge.net
+
+       * Makefile.in: (snapshot): Add target.
+       * lib/Makefile.in: (install-headers): Use installdir variable.
+       (installdir): Set value based on target-alias.
+
 2001-02-21  Earnie Boyd  <earnie@users.sourceforge.net
 
        * include/w32api.h: (_W32API_VERSION): Remove.
index baab7501617251f55b4a3cb625f11424f033005e..0765891bb3f527d64211f5096c16c3d0bfc0c1f0 100644 (file)
@@ -83,7 +83,11 @@ install uninstall:
                (cd $$i; $(MAKE) $@); \
        done
 
-distdir = $(PACKAGE)-$(VERSION)
+ifdef SNAPDATE
+    distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)
+else
+    distdir = $(PACKAGE)-$(VERSION)
+endif
 
 dist: srcdist bindist
 
@@ -108,6 +112,9 @@ bindist:
        rm -f $(distdir).tar.gz
        cd $(distdir); $(TAR) czf ../$(distdir).tar.gz .
 
+snapshot:
+       make dist SNAPDATE=$(shell date '+%Y%m%d')
+
 Makefile: Makefile.in config.status configure
        $(SHELL) config.status
 
index 6749b4e52c3bc0a60e2cdffa46fb96ad5db9e17a..ec19424567a1b9aa28f1bae5d19b7c64c026b763 100644 (file)
@@ -35,7 +35,11 @@ tooldir:=$(exec_prefix)/$(target_alias)
 endif
 datadir = @datadir@
 infodir = @infodir@
+ifneq (,$(findstring cygwin,$(target_alias)))
+includedir = $(tooldir)/include/w32api
+else
 includedir = @includedir@
+endif
 
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
@@ -144,9 +148,9 @@ install-libraries: all
        done
 
 install-headers:
-       $(mkinstalldirs) $(tooldir)/include/w32api
+       $(mkinstalldirs) $(includedir)
        for i in $(HEADERS); do \
-               $(INSTALL_DATA) $(srcdir)/../include/$$i $(tooldir)/include/w32api/$$i ; \
+               $(INSTALL_DATA) $(srcdir)/../include/$$i $(includedir)/$$i ; \
        done
 
 # uninstall headers and libraries from a target specified directory
This page took 0.198442 seconds and 5 git commands to generate.