Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi all I am trying to write a Makefile to compile my driver code and install the devices also my scriot is as follows.....
'contents of Makefile'
@echo "********* Installing the $(TARGET) Module *********"
for MINOR_NUM in 0 16 32 48 64 80 ; do \
if [ -e $(DEVICE)$(MINOR_NUM) ]; then \
echo "Device $(DEVICE)$(MINOR_NUM) already exists"; \
mknod $(DEVICE)$(MINOR_NUM) c $(MAJOR_NUM) $(MINOR_NUM); \
chmod 664 $(DEVICE)$(MINOR_NUM); \
MINOR_NUM=$( ($MINOR_NUM+16) ); \
@echo $(MINOR_NUM); \
But in this script value of MINOR_NUM always remains 0 and I want it to cahnge each time it gose to the starting of the loop....
Is it the correct way to do this If not then how I can do that..??
plz help me out