File: Makefile

package info (click to toggle)
sql-ledger 2.8.30-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 34,304 kB
  • ctags: 3,640
  • sloc: perl: 55,210; sql: 27,183; makefile: 129; sh: 38
file content (36 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PACKAGE = sql-ledger

# Assumption: all .pl except am/login/admin/setup are modules
MODULES = $(shell ls *.pl | grep -v -E '(am|login|admin|setup)\.pl')
SUBDIRS = bin doc SL locale sql templates users css

LIB_FILES = am.pl favicon.ico login.pl menu.ini setup.pl \
            sql-ledger.conf.default VERSION index.html \
            images


CFG_FILES = sql-ledger-httpd.conf sql-ledger.conf

all:

install: 
	mkdir -p $(DESTDIR)/usr/share/sql-ledger
	cp -a $(LIB_FILES) $(DESTDIR)/usr/share/sql-ledger/
	
	

	cd $(DESTDIR)/usr/share/sql-ledger ; \
	ln -f login.pl admin.pl ; \
	set -e ; for module in $(MODULES) ; do \
	  ln am.pl $$module ; \
	done ; \
	ln -sf /etc/sql-ledger/sql-ledger.conf 

	set -e ; for subdir in $(SUBDIRS) ; do \
	  $(MAKE) -C $$subdir $@ ; \
	done

	mkdir -p $(DESTDIR)/etc/sql-ledger
	cp $(CFG_FILES) $(DESTDIR)/etc/sql-ledger

clean: