projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rework the build system a bit
[ghc-hetmet.git]
/
utils
/
mkdirhier
/
Makefile
diff --git
a/utils/mkdirhier/Makefile
b/utils/mkdirhier/Makefile
index
f698112
..
1190557
100644
(file)
--- a/
utils/mkdirhier/Makefile
+++ b/
utils/mkdirhier/Makefile
@@
-3,9
+3,12
@@
include $(TOP)/mk/boilerplate.mk
boot :: all
boot :: all
-SCRIPT_PROG=mkdirhier
-SCRIPT_OBJS=mkdirhier.sh
-INTERP=$(SHELL)
-CLEAN_FILES += $(SCRIPT_PROG)
+PROG=mkdirhier
+CLEAN_FILES += $(PROG)
+all::
+ $(RM) -f $(PROG)
+ echo '#!$(SHELL)' >> $(PROG)
+ cat $(PROG).sh >> $(PROG)
+ $(EXECUTABLE_FILE) $(PROG)
include $(TOP)/mk/target.mk
include $(TOP)/mk/target.mk