diff options
author | cos <cos> | 2014-11-21 22:05:04 +0100 |
---|---|---|
committer | cos <cos> | 2014-12-06 12:50:40 +0100 |
commit | 4611ecfa9f1419b23beac04bcef0e102ec76d489 (patch) | |
tree | 6bed4834001477408a02085742bfb0ef7f5e332e | |
parent | 368cdce25f35f31320d2f26d7683fa35a27e18f6 (diff) | |
download | mat-4611ecfa9f1419b23beac04bcef0e102ec76d489.zip |
Add cgi-bin/Makefile + replace Makefile.PL.
-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 |