File: Jamfile

package info (click to toggle)
argyll 3.3.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 33,944 kB
  • sloc: ansic: 402,917; javascript: 36,570; xml: 1,551; sh: 520; makefile: 428
file content (71 lines) | stat: -rwxr-xr-x 2,054 bytes parent folder | download | duplicates (2)
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

# JAM style makefile for libusb-win32, to create .inf files.

#PREF_CCFLAGS 	= $(CCOPTFLAG) ;		# Turn optimisation on
PREF_CCFLAGS    = $(CCDEBUGFLAG) ;		# Debugging flags
#PREF_CCFLAGS	= $(CCHEAPDEBUG) ;		# Heap Debugging flags
PREF_LINKFLAGS	= $(LINKDEBUGFLAG) ;	# Link debugging flags

#Products
#Libraries = ;
Executables = ArgyllCMS_install_USB.exe ArgyllCMS_uninstall_USB.exe ;
#Headers = ;

#Install
#InstallBin  $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
#InstallLib  $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;

Depends install : [ NormDstTargets $(Executables) ] ;

# USB driver un-installer
if $(NT) {
	HDRS = ../h ;
	UACBin ArgyllCMS_uninstall_USB ;
	MainsFromSources ArgyllCMS_uninstall_USB.c ;

	if $(TARGET64) = true {
		File ArgyllCMS_install_USB.exe : bin/amd64/ArgyllCMS_install_USB.exe ;
	} else {
		File ArgyllCMS_install_USB.exe : bin/x86/ArgyllCMS_install_USB.exe ;
	}
}

if [ GLOB $(PATH) : sed sed.exe ] {
	Echo "sed seems to be available" ;
	CREATE_INFS = true ;
} else {
	CREATE_INFS = false ;
}

# Create ArgyllCMS.inf from the template and device list
if $(CREATE_INFS) = true {
	local _i _t _d ;
	NDepends files : ArgyllCMS.inf ;
	# Make sure .cat's get built on install
	NDepends install : ArgyllCMS.inf ArgyllCMS.cat ;

	_i  = [ NormPaths ArgyllCMS.inf ] ;
	_t  = [ NormPaths ArgyllCMS.inf.t ] ;
	_d  = [ NormPaths ArgyllCMS.inf.d ] ;

	File ArgyllCMS.inf : ArgyllCMS.inf.t ;
	GenFileNND ArgyllCMS.inf : "sed s/#PLAT#// $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;
	GenFileNND ArgyllCMS.inf : "sed s/#PLAT#/.NTx86/ $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ; 
	GenFileNND ArgyllCMS.inf : "sed s/#PLAT#/.NTamd64/ $(_d) >> $(_i)" : ArgyllCMS.inf.t ArgyllCMS.inf.d ;

	# If we have the tools and the .inf file has changed,
	# create valid (but unsigned) .cat files.
	if $(NT) && [ GLOB $(PATH) : inf2cat.exe ] {
		_b  = [ NormPaths makecat.bat ] ;
		# echo "SUBDIR = '" $(SUBDIR) "'" ;
		GenFileNNDnc ArgyllCMS.cat : $(_b) $(SUBDIR) : ArgyllCMS.inf ;
	}
}