[molecule] add Makefiles

This commit is contained in:
Fabio Erculiani
2010-05-16 14:46:16 +02:00
parent c7fa91efe7
commit 01062c648a
2 changed files with 33 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
SUBDIRS = examples molecule
PREFIX = /usr
BINDIR = $(PREFIX)/bin
DESTDIR =
LIBDIR = $(PREFIX)/lib
SYSCONFDIR = /etc
all:
for d in $(SUBDIRS); do make -C $$d; done
clean:
for d in $(SUBDIRS); do make -C $$d clean; done
install:
for d in $(SUBDIRS); do make -C $$d install; done
# install the application
mkdir -p $(DESTDIR)$(BINDIR)
install -m 755 molecule.py $(DESTDIR)$(BINDIR)/molecule
+15
View File
@@ -0,0 +1,15 @@
PREFIX = /usr
BINDIR = $(PREFIX)/bin
DESTDIR =
LIBDIR = $(PREFIX)/lib
SYSCONFDIR = /etc
all:
clean:
install:
mkdir -p $(DESTDIR)$(LIBDIR)/molecule
cp . $(DESTDIR)$(LIBDIR)/molecule -Ra