File: Makefile.am

package info (click to toggle)
thepeg 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 9,312 kB
  • ctags: 11,509
  • sloc: cpp: 57,129; sh: 11,315; java: 3,212; lisp: 1,402; makefile: 830; ansic: 58; perl: 3
file content (57 lines) | stat: -rw-r--r-- 1,769 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
JAVASOURCES = SetupThePEG.java ObjectFrame.java \
              Parameter.java FullSlider.java \
              PopCardPanel.java SwitchOption.java \
              Switch.java RefRef.java Reference.java \
              Interface.java RefVector.java \
              BrowserTree.java ObjectNode.java \
              ObjectRef.java ClassSelector.java \
              ObjectSelector.java StringParameter.java \
              Command.java ParVector.java RunSelector.java \
              RunFrame.java

CLEANFILES = ThePEG.jar thepeg.sh

jardir = $(pkglibdir)
nodist_jar_DATA = ThePEG.jar

dist_noinst_DATA = $(JAVASOURCES) jar-manifest

## .sh needed for OS X case-insensitive file systems
## to avoid confusion with ThePEG directory
noinst_SCRIPTS = thepeg.sh
EXTRA_DIST = thepeg.install

clean-local:
	rm -rf ThePEG

ThePEG:
	mkdir -p ThePEG
	for file in $(JAVASOURCES) jar-manifest; do \
           cd ThePEG; $(LN_S) ../$(srcdir)/$$file $$file; cd ..; done

ThePEG.jar: ThePEG $(JAVASOURCES)
	$(JAVAC) -source 1.4 `for file in $(JAVASOURCES); do echo ThePEG/$$file; done`
	$(JAR) cmf ThePEG/jar-manifest ThePEG.jar ThePEG/*.class

thepeg.sh: thepeg.install Makefile
	sed -e s:@pkglibdir[@]:$(pkglibdir):g \
            -e s:@bindir[@]:$(bindir):g \
            -e s:@java[@]:$(JAVA):g $(srcdir)/thepeg.install > thepeg.sh
	chmod +x thepeg.sh


test: ThePEG.jar
	$(JAVA) -jar ThePEG.jar ../src/setupThePEG -d 1 -L../lib \
                -L../../Pythia7/lib -r ../../Pythia7/lib/Pythia7Defaults.rpo

check-local:
	$(JAVA) -Djava.awt.headless=true -jar ThePEG.jar --classcheck

install-exec-hook: thepeg.sh
	$(install_sh) thepeg.sh $(DESTDIR)$(bindir)/thepeg 

uninstall-hook:
	rm -f $(DESTDIR)$(bindir)/thepeg

installcheck-local:
	$(DESTDIR)$(bindir)/thepeg --classcheck