Create minimal GNUmakerules and GNUmakevars automatically.
This commit is contained in:
parent
0150503c41
commit
27306a9b51
|
@ -1,5 +1,4 @@
|
|||
include GNUmakevars
|
||||
include GNUmakerules
|
||||
|
||||
all: time_t
|
||||
|
||||
|
@ -7,3 +6,10 @@ time_t:
|
|||
clean:
|
||||
rm time_t
|
||||
install: $(BINDIR)/time_t
|
||||
|
||||
GNUmakevars: GNUmakevars.sh
|
||||
sh ./$^ > $@
|
||||
GNUmakerules: GNUmakerules.sh
|
||||
sh ./$^ > $@
|
||||
|
||||
include GNUmakerules
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
echo "\$(BINDIR)/%: %"
|
||||
echo -e "\tcp \$^ \$@"
|
||||
echo "\$(MAN1DIR)/%: %"
|
||||
echo -e "\tcp \$^ \$@"
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
prefix=${prefix:-/usr/local}
|
||||
echo "BINDIR=$prefix/bin"
|
||||
|
||||
for i in "$prefix/share/man/man1" "$prefix/man/man1"
|
||||
do
|
||||
if [ -d "$i" -a -w "$i" ]
|
||||
then
|
||||
echo "MAN1DIR=$i"
|
||||
break;
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
echo "all:"
|
Loading…
Reference in New Issue