-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (47 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
59 lines (47 loc) · 1.63 KB
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
58
# these values filled in by yorick -batch make.i
Y_MAKEDIR=/usr/lib/yorick/2.2
Y_EXE=/usr/lib/yorick/2.2/bin/yorick
Y_EXE_PKGS=
Y_EXE_HOME=/usr/lib/yorick/2.2
Y_EXE_SITE=/usr/share/yorick/2.2
Y_HOME_PKG=
#
# !! THIS IS NOT A PLUGIN !!
# This is a package made of several interpreted
# include file. This makefile is just used to install,
# uninstall it or build the distribution tar file.
# ------------------------------------------------ macros for this package
# used for distribution
PKG_NAME = opra
# include files for this package
PKG_I=opra.i opra_lmfit.i opra_utils.i opra_libkl.i opra_libdh.i opra_structs.i opra_gui.i opra_svipc.i opra_pyk.i
# autoload file for this package, if any
PKG_I_START =
# override macros Makepkg sets for rules and other macros
# Y_HOME and Y_SITE in Make.cfg may not be correct (e.g.- relocatable)
Y_HOME=$(Y_EXE_HOME)
Y_SITE=$(Y_EXE_SITE)
# include $(Y_MAKEDIR)/Make.cfg
DEST_Y_SITE=$(DESTDIR)$(Y_SITE)
DEST_Y_HOME=$(DESTDIR)$(Y_HOME)
# ------------------------------------- targets and rules for this package
build:
@echo "Nothing to build. This is not a plugin"
@echo "other targets: install, uninstall, clean"
@echo "for maintainers: package, distpkg"
clean:
-rm -rf pkg *~
install:
mkdir -p $(DEST_Y_SITE)/i
mkdir -p $(DEST_Y_SITE)/g
mkdir -p $(DEST_Y_SITE)/python
mkdir -p $(DEST_Y_SITE)/glade
mkdir -p $(DEST_Y_SITE)/share
cp -p $(PKG_I) $(DEST_Y_SITE)/i/
cp -p opra.gs $(DEST_Y_SITE)/g/
cp -p opra_gui.py $(DEST_Y_SITE)/python/.
cp -p opra_gui.glade $(DEST_Y_SITE)/glade/.
cp -pr examples $(DEST_Y_SITE)/share/opra
uninstall:
-cd $(DEST_Y_SITE)/i; rm $(PKG_I)
-cd $(DEST_Y_SITE)/g; rm opra.gs