File: Makefile

package info (click to toggle)
yaskkserv 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 964 kB
  • ctags: 906
  • sloc: cpp: 11,838; perl: 670; sh: 191; makefile: 131
file content (101 lines) | stat: -rw-r--r-- 3,528 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# -*- Makefile -*-

include Makefile.config

ifdef DEBUG
export VAR_PATH		= $(PROJECT_ROOT)/var/$(ARCHITECTURE_LOWER_CASE)/debug
else				# DEBUG
export VAR_PATH		= $(PROJECT_ROOT)/var/$(ARCHITECTURE_LOWER_CASE)/release
endif				# DEBUG

export MAKEFILE		= Makefile.$(ARCHITECTURE_LOWER_CASE)
export MAKEDEPEND	= $(PERL) -w $(PROJECT_ROOT)/tools/build/makedepend.$(ARCHITECTURE_LOWER_CASE)

ifeq ($(ARCHITECTURE),BSD_CYGWIN_LINUX_GCC)
SOURCE_PATH		= ./source
PRE_COMMAND		=
else				# ($(ARCHITECTURE),BSD_CYGWIN_LINUX_GCC)
include UNKNOWN_ARCHITECTURE_or_Makefile.config_not_found__please_execute_configure__dummy_include_file
endif				# ($(ARCHITECTURE),BSD_CYGWIN_LINUX_GCC)

.PHONY			: all clean run makerun break makebreak kill makekill debugger vlist vhist vreport tags depend cleandepend install package test setup

all			: setup
	$(PRE_COMMAND)
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) all

run			: setup
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) run

makerun			: setup
	$(PRE_COMMAND)
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) makerun

break			: setup
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) break

makebreak		: setup
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) makebreak

clean			: setup
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) clean

realclean		: setup
	$(RM) -rf ./var
	$(RM) -rf Makefile.config

distclean		: realclean

depend			: setup
	$(PRE_COMMAND)
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) depend

cleandepend		: setup
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) cleandepend

test			:
	$(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) test

install_common_		:
	$(MKDIR) -p $(PREFIX)/bin
	$(INSTALL) $(VAR_PATH)/yaskkserv_make_dictionary/yaskkserv_make_dictionary $(PREFIX)/bin/yaskkserv_make_dictionary

install			: install_normal

install_all		: install_common_
	$(MKDIR) -p $(PREFIX)/sbin
	$(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(PREFIX)/sbin/yaskkserv_simple
	$(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(PREFIX)/sbin/yaskkserv_normal
	$(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(PREFIX)/sbin/yaskkserv_hairy

install_simple		: install_common_
	$(MKDIR) -p $(PREFIX)/sbin
	$(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(PREFIX)/sbin/yaskkserv

install_normal		: install_common_
	$(MKDIR) -p $(PREFIX)/sbin
	$(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(PREFIX)/sbin/yaskkserv

install_hairy		: install_common_
	$(MKDIR) -p $(PREFIX)/sbin
	$(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(PREFIX)/sbin/yaskkserv

package			:
	$(MKDIR) -p var &&\
	$(MKDIR) -p var/package &&\
	$(RM) -rf var/package/yaskkserv-$(PROJECT_VERSION) &&\
	hg archive var/package/yaskkserv-$(PROJECT_VERSION) &&\
	cd var/package &&\
	$(RM) -f yaskkserv-$(PROJECT_VERSION)/.hg_archival.txt &&\
	$(RM) -f yaskkserv-$(PROJECT_VERSION)/.hgignore &&\
	$(RM) -rf yaskkserv-$(PROJECT_VERSION)/local &&\
	tar czf yaskkserv-$(PROJECT_VERSION).tar.gz yaskkserv-$(PROJECT_VERSION) &&\
	tar cJf yaskkserv-$(PROJECT_VERSION).tar.xz yaskkserv-$(PROJECT_VERSION) &&\
	sha1sum yaskkserv-$(PROJECT_VERSION).tar.gz yaskkserv-$(PROJECT_VERSION).tar.xz

setup			:
	mkdir -p $(VAR_PATH)/skk/architecture/$(ARCHITECTURE_LOWER_CASE)
	mkdir -p $(VAR_PATH)/yaskkserv_hairy
	mkdir -p $(VAR_PATH)/yaskkserv_make_dictionary
	mkdir -p $(VAR_PATH)/yaskkserv_normal
	mkdir -p $(VAR_PATH)/yaskkserv_simple