aboutsummaryrefslogtreecommitdiff
path: root/unix/make
diff options
context:
space:
mode:
Diffstat (limited to 'unix/make')
-rw-r--r--unix/make/Makefile.BOT2
-rw-r--r--unix/make/Makefile.CMD4
-rw-r--r--unix/make/Makefile.TOP2
-rw-r--r--unix/make/Makefile.bio4
-rw-r--r--unix/make/Makefile.fmt2
-rw-r--r--unix/make/Makefile.mk6
-rw-r--r--unix/make/Makefile.regexp5
-rw-r--r--unix/make/Makefile.utf2
8 files changed, 17 insertions, 10 deletions
diff --git a/unix/make/Makefile.BOT b/unix/make/Makefile.BOT
index ed00e301..39dec9d8 100644
--- a/unix/make/Makefile.BOT
+++ b/unix/make/Makefile.BOT
@@ -15,7 +15,7 @@ tgz:
rm -rf $(NAME)-$(VERSION)
clean:
- rm -f $(OFILES) $(LIB)
+ rm -f $(OFILES) $(LIB) $(CLEANFILES)
nuke:
rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
diff --git a/unix/make/Makefile.CMD b/unix/make/Makefile.CMD
index 6a1e9014..ca1e6697 100644
--- a/unix/make/Makefile.CMD
+++ b/unix/make/Makefile.CMD
@@ -2,7 +2,3 @@
$(TARG): $(OFILES)
$(CC) -o $(TARG) $(OFILES) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf
-
-clean:
- rm -f $(OFILES) $(TARG)
-
diff --git a/unix/make/Makefile.TOP b/unix/make/Makefile.TOP
index f6abc8c1..c5a613de 100644
--- a/unix/make/Makefile.TOP
+++ b/unix/make/Makefile.TOP
@@ -18,3 +18,5 @@ NUKEFILES=
TGZFILES=
+CLEANFILES=
+
diff --git a/unix/make/Makefile.bio b/unix/make/Makefile.bio
index 295e3512..00a0b697 100644
--- a/unix/make/Makefile.bio
+++ b/unix/make/Makefile.bio
@@ -28,9 +28,11 @@ HFILES=\
all: $(LIB)
install: $(LIB)
- test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
+ mkdir -p $(PREFIX)/man/man3
install -m 0644 bio.3 $(PREFIX)/man/man3/bio.3
+ mkdir -p $(PREFIX)/include
install -m 0644 bio.h $(PREFIX)/include
+ mkdir -p $(PREFIX)/lib
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
bcat: bcat.$O $(LIB)
diff --git a/unix/make/Makefile.fmt b/unix/make/Makefile.fmt
index 85e9455f..14657c67 100644
--- a/unix/make/Makefile.fmt
+++ b/unix/make/Makefile.fmt
@@ -53,7 +53,9 @@ install: $(LIB)
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
install -m 0644 print.3 $(PREFIX)/man/man3/print.3
install -m 0644 fmtinstall.3 $(PREFIX)/man/man3/fmtinstall.3
+ mkdir -p $(PREFIX)/include
install -m 0644 fmt.h $(PREFIX)/include/fmt.h
+ mkdir -p $(PREFIX)/lib
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
$(NAN).$O: nan.h
diff --git a/unix/make/Makefile.mk b/unix/make/Makefile.mk
index 2a06164d..a80ad19e 100644
--- a/unix/make/Makefile.mk
+++ b/unix/make/Makefile.mk
@@ -2,6 +2,7 @@ TARG=mk
VERSION=2.0
PORTPLACE=devel/mk
NAME=mk
+CLEANFILES=mk mk.1a
OFILES=\
arc.$O\
@@ -38,10 +39,11 @@ all: $(TARG)
TGZFILES+=mk.pdf
install: $(LIB)
- test -d $(PREFIX)/man/man1 || mkdir $(PREFIX)/man/man1
- test -d $(PREFIX)/doc || mkdir $(PREFIX)/doc
+ mkdir -p $(PREFIX)/bin
install -m 0755 mk $(PREFIX)/bin/mk
cat mk.1 | sed 's;DOCPREFIX;$(PREFIX);g' >mk.1a
+ mkdir -p $(PREFIX)/man/man1
install -m 0644 mk.1a $(PREFIX)/man/man1/mk.1
+ mkdir -p $(PREFIX)/doc
install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf
diff --git a/unix/make/Makefile.regexp b/unix/make/Makefile.regexp
index b098d368..5729981c 100644
--- a/unix/make/Makefile.regexp
+++ b/unix/make/Makefile.regexp
@@ -19,11 +19,12 @@ HFILES=\
all: $(LIB)
install: $(LIB)
- test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
- test -d $(PREFIX)/man/man7 || mkdir $(PREFIX)/man/man7
+ mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7
install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3
install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
+ mkdir -p $(PREFIX)/lib
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
+ mdir -p $(PREFIX)/include
install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h
test: test.$O $(LIB)
diff --git a/unix/make/Makefile.utf b/unix/make/Makefile.utf
index 4d15d100..10e72309 100644
--- a/unix/make/Makefile.utf
+++ b/unix/make/Makefile.utf
@@ -36,6 +36,8 @@ install: $(LIB)
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
+ mkdir -p $(PREFIX)/include
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
+ mkdir -p $(PREFIX)/lib
install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)