1 # Makefile for dtv-scan-tables (26 May 2014)
2 # Copyright 2014 Jonathan McCrohan <jmccrohan@gmail.com>
4 # The vast majority of the DVB scan files contained in this repository
5 # are DVBv3 scan files. This format has been deprecated in favor of the
8 # Use this makefile to convert the existing DVBv3 scan files to DVBv5
9 # scan files until such time as DVBv5 scan format is in widespread use.
11 # Requires dvb-format-convert from v4l-utils.
14 DVBFORMATCONVERT
= dvb-format-convert
16 DVBV3DIRS
= atsc dvb-c dvb-s dvb-t
18 DVBV3CHANNELFILES
= $(foreach dir,$(DVBV3DIRS
),$(wildcard $(dir)/*))
20 DVBFORMATCONVERT_CHANNEL_DVBV5
= -ICHANNEL
-ODVBV5
21 DVBFORMATCONVERT_CHANNEL_DVBV3
= -IDVBV5
-OCHANNEL
23 DVBV3OUTPUTDIR
= dvbv3
24 DVBV5OUTPUTDIR
= dvbv5
27 @
$(foreach var
,$(DVBV3DIRS
), $(MKDIR
) $(DVBV5OUTPUTDIR
)/$(var
);)
28 @
$(foreach var
,$(DVBV3CHANNELFILES
), $(DVBFORMATCONVERT
) $(DVBFORMATCONVERT_CHANNEL_DVBV5
) $(var
) $(DVBV5OUTPUTDIR
)/$(var
);)
31 @
$(foreach var
,$(DVBV3DIRS
), $(MKDIR
) $(DVBV3OUTPUTDIR
)/$(var
);)
32 @
$(foreach var
,$(DVBV3CHANNELFILES
), $(DVBFORMATCONVERT
) $(DVBFORMATCONVERT_CHANNEL_DVBV3
) $(DVBV5OUTPUTDIR
)/$(var
) $(DVBV3OUTPUTDIR
)/$(var
);)
36 rm -rf
$(DVBV3OUTPUTDIR
)/ $(DVBV5OUTPUTDIR
)/