diff options
-rw-r--r-- | Makefile | 21 | ||||
-rw-r--r-- | Makefile.PL | 10 | ||||
-rw-r--r-- | cgi-bin/Makefile | 5 |
3 files changed, 26 insertions, 10 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a759288 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +SUBDIRS = cgi-bin + +.PHONY: subdirs $(SUBDIRS) + +subdirs: $(SUBDIRS) + +$(SUBDIRS): + $(MAKE) -C $@ + +INSTALLDIRS = $(SUBDIRS:%=install-%) + +$(INSTALLDIRS): + $(MAKE) -C $(@:install-%=%) install + +.PHONY: subdirs $(INSTALLDIRS) + +all: + +install: $(INSTALLDIRS) + install -d $(DESTDIR)/usr/bin/ + install mat $(DESTDIR)/usr/bin/ diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 3f5d17c..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; -use ExtUtils::MakeMaker; - -WriteMakefile( - EXE_FILES => [ 'mat' ] -); - diff --git a/cgi-bin/Makefile b/cgi-bin/Makefile new file mode 100644 index 0000000..96392b3 --- /dev/null +++ b/cgi-bin/Makefile @@ -0,0 +1,5 @@ +all: + +install: + install -d $(DESTDIR)/usr/lib/cgi-bin/mat + install mat.cgi $(DESTDIR)/usr/lib/cgi-bin/mat |