]> git.saurik.com Git - apple/coreosmakefiles.git/blobdiff - Makefile
CoreOSMakefiles-77.tar.gz
[apple/coreosmakefiles.git] / Makefile
index f484e7233114a5bd0f1117a18ddabb79cd979323..43d8377dda65999005606e969fdac30d59e85be5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,29 @@
 Project=CoreOSMakefiles
 
-CoreOSMakefiles = .
+Destination = $(DEVELOPER_DIR)/Makefiles/CoreOS
+BSDSUFFIX   = .mk
+BSDDEFINE   = BSDMAKESTYLE
+GNUSUFFIX   = .make
+INBASENAMES = Commands Variables
+INSUFFIX    = .in
+STANDARD    = Standard
 
-include $(CoreOSMakefiles)/ReleaseControl/Common.make
+install:
+       @$(MAKE) installsrc SRCROOT=$(DSTROOT)$(Destination)
+       rm -f $(DSTROOT)$(Destination)/Makefile
+       @set -x && \
+           for i in $(INBASENAMES); do \
+               unifdef -U$(BSDDEFINE) -t $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) > $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(GNUSUFFIX); \
+               [ $$? -eq 1 ] || exit 1; \
+               $(RM) -f $(DSTROOT)$(Destination)/$(STANDARD)/$$i$(INSUFFIX) || exit 1; \
+           done
 
-Destination = $(MAKEFILEPATH)/CoreOS
+installhdrs:
+       $(_v) echo No headers to install
 
-install_headers::
-       @$(MAKE) install_source SRCROOT=$(DSTROOT)$(Destination)
-       $(_v) $(RM) -f $(DSTROOT)$(Destination)/Makefile
+installsrc:
+       install -d "$(SRCROOT)"
+       rsync -a --exclude=.svn --exclude=.git ./ "$(SRCROOT)"
+
+clean:
+       $(_v) echo Nothing to clean