File: Makefile.am

package info (click to toggle)
webmagick 2.02-8.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,712 kB
  • ctags: 778
  • sloc: perl: 6,524; sh: 656; makefile: 184
file content (38 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download | duplicates (5)
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
37
38
#
# Top Makefile for WebMagick
#
# Copyright Bob Friesenhahn, 1999
#
AUTOMAKE_OPTIONS = 1.2

# Subdirectories under Automake control
SUBDIRS = doc icons utils

# Binary scripts
bin_SCRIPTS = webmagick

# Directory in which to install WebMagick icons & html files
ICON_INSTALL_DIR   = @ROOTPATH@/@ICONPATH@
ICON_INSTALL_FILES = webmagick.js

ETC_INSTALL_DIR = ${exec_prefix}/etc

install-data-local:
	$(mkinstalldirs) $(ICON_INSTALL_DIR)
	for file in $(ICON_INSTALL_FILES) ; \
	do \
	  $(INSTALL_SCRIPT) $$file $(ICON_INSTALL_DIR) ; \
	done
	$(INSTALL_DATA) webmagickrc $(ETC_INSTALL_DIR)/webmagickrc

# Additional files to distribute
EXTRA_DIST = INSTALL.generic MANIFEST TODO webmagick.in \
	 webmagick.js webmagick.lsm webmagick.lsm.in webmagickrc.in

# Generate webmagick.lsm from webmagick.lsm.in at dist time.
webmagick.lsm : webmagick.lsm.in configure.in
	date=`date +"%Y-%m-%d" | tr '[a-z]' '[A-Z]'`; \
	sed -e "s/%VERSION%/@VERSION@/g" < webmagick.lsm.in | \
	sed -e "s/%DATE%/$$date/g" > webmagick.lsm

dist-hook: webmagick.lsm